package com.clouddot.baipai.ui.util;

import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

public class SelectedBtnUtil
{
	public static void selectedforBtn(Button[] btnArray, Button button)
	{
		for (Button btn : btnArray)
		{
			if (btn == button)
			{
				btn.setSelected(true);
			} else
			{
				btn.setSelected(false);
			}
		}
	}
	
	public static void selectedforText(TextView[] tvArray, TextView button)
	{
		for (TextView tv : tvArray)
		{
			if (tv == button)
			{
				tv.setSelected(true);
			} else
			{
				tv.setSelected(false);
			}
		}
	}

	public static void selectedforLinear(LinearLayout[] linearLayouts, LinearLayout linearLayout)
	{
		for (LinearLayout linearLayout1 : linearLayouts)
		{
			if (linearLayout1 == linearLayout)
			{
				linearLayout1.setSelected(true);
			} else
			{
				linearLayout1.setSelected(false);
			}
		}
	}


}
